package com.aliyun.heiyu.powermaster.server.rotary.dao.impl;

import com.aliyun.heiyu.powermaster.server.rotary.contants.ModbusSqlContant;
import com.aliyun.heiyu.powermaster.server.rotary.dao.ModbusDAO;
import com.aliyun.heiyu.powermaster.server.rotary.object.entity.DModbusEntity;
import com.aliyun.heiyu.powermaster.server.rotary.utils.JdbcUtil;

import java.util.List;

/**
 * @Description 接口实现类
 * @Author shun.zhang
 * @Date 2020/1/7 13:53
 **/
public class ModbusDAOImpl implements ModbusDAO {
    @Override
    public List<DModbusEntity> queryModbusList() {
        return JdbcUtil.queryForList(ModbusSqlContant.QUERY_MODBUSS_BY_TYPE, null, DModbusEntity.class);
    }
}
